package com.ch.engine;

import com.ch.engine.daily.bean.FullLifecycleBean;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Bean;

/**
 * engine启动类
 *
 * @author wangchunhui
 * @date 2022/11/3 10:19
 */
@SpringBootApplication(scanBasePackages = {"com.ch.engine.**"}, exclude = DataSourceAutoConfiguration.class)
public class EngineApplication {

    public static void main(String[] args) {
        SpringApplication.run(EngineApplication.class, args);
    }

//    public static void main(String[] args) {
//        var ctx = SpringApplication.run(EngineApplication.class, args);
//        // 主动关闭容器，触发销毁流程
//        ctx.close();
//    }
}
